package com.cencat.dispatch;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 调度管理服务启动类
 * 
 * @author cencat
 * @version 1.0
 * @since 2024-12-19
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableTransactionManagement
@MapperScan("com.cencat.dispatch.mapper")
public class DispatchApplication {

    public static void main(String[] args) {
        SpringApplication.run(DispatchApplication.class, args);
        System.out.println("");
        System.out.println("   ____                      _     ____  _                 _       _     ");
        System.out.println("  / ___|___ _ __   ___ __ _| |_  |  _ \(_)___ _ __   __ _| |_ ___| |__  ");
        System.out.println(" | |   / _ \ '_ \ / __/ _` | __| | | | | / __| '_ \ / _` | __/ __| '_ \ ");
        System.out.println(" | |__|  __/ | | | (_| (_| | |_  | |_| | \__ \ |_) | (_| | || (__| | | |");
        System.out.println("  \____\___|_| |_|\___\__,_|\__| |____/|_|___/ .__/ \__,_|\__\___|_| |_|");
        System.out.println("                                              |_|                        ");
        System.out.println("");
        System.out.println("调度管理服务启动成功！");
        System.out.println("接口文档地址: http://localhost:8083/doc.html");
        System.out.println("");
    }

}